/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package preferences;

import technical.ClInit;

/**
 *
 * @author Carmen
 */
public class PreferencesModel {
    private int _mainWidth = ClInit.getMainWidth();
    private int _mainHeight = ClInit.getMainHeight();
    private String _mainInitialModule = ClInit.getMainInitialModule();
    
    private String _browserDefaultHomePage = ClInit.getBrowserDefaultHomePage();
    private int _browserMaxTabNumber = ClInit.getBrowserMaxTabNumber();
    private int _browserMaxTabLenght = ClInit.getBrowserMaxTabLenght();
    
    private String _explorerDefaultFolder = ClInit.getExplorerDefaultHomePage();
    
    private String _musicFolder = ClInit.getMusicFolder();
    
    private String _rssListFeedAddress = ClInit.getListFeedAdress();

    /**
     * @return the _mainWidth
     */
    public int getMainWidth() {
        return _mainWidth;
    }

    /**
     * @param mainWidth the _mainWidth to set
     */
    public void setMainWidth(int mainWidth) {
        this._mainWidth = mainWidth;
    }

    /**
     * @return the _mainHeight
     */
    public int getMainHeight() {
        return _mainHeight;
    }

    /**
     * @param mainHeight the _mainHeight to set
     */
    public void setMainHeight(int mainHeight) {
        this._mainHeight = mainHeight;
    }

    /**
     * @return the _mainInitialModule
     */
    public String getMainInitialModule() {
        return _mainInitialModule;
    }

    /**
     * @param mainInitialModule the _mainInitialModule to set
     */
    public void setMainInitialModule(String mainInitialModule) {
        this._mainInitialModule = mainInitialModule;
    }

    /**
     * @return the _browserDefaultHomePage
     */
    public String getBrowserDefaultHomePage() {
        return _browserDefaultHomePage;
    }

    /**
     * @param browserDefaultHomePage the _browserDefaultHomePage to set
     */
    public void setBrowserDefaultHomePage(String browserDefaultHomePage) {
        this._browserDefaultHomePage = browserDefaultHomePage;
    }

    /**
     * @return the _browserMaxTabNumber
     */
    public int getBrowserMaxTabNumber() {
        return _browserMaxTabNumber;
    }

    /**
     * @param browserMaxTabNumber the _browserMaxTabNumber to set
     */
    public void setBrowserMaxTabNumber(int browserMaxTabNumber) {
        this._browserMaxTabNumber = browserMaxTabNumber;
    }

    /**
     * @return the _browserMaxTabLenght
     */
    public int getBrowserMaxTabLenght() {
        return _browserMaxTabLenght;
    }

    /**
     * @param browserMaxTabLenght the _browserMaxTabLenght to set
     */
    public void setBrowserMaxTabLenght(int browserMaxTabLenght) {
        this._browserMaxTabLenght = browserMaxTabLenght;
    }

    /**
     * @return the _explorerDefaultFolder
     */
    public String getExplorerDefaultFolder() {
        return _explorerDefaultFolder;
    }

    /**
     * @param explorerDefaultFolder the _explorerDefaultFolder to set
     */
    public void setExplorerDefaultFolder(String explorerDefaultFolder) {
        this._explorerDefaultFolder = explorerDefaultFolder;
    }

    /**
     * @return the _musicFolder
     */
    public String getMusicFolder() {
        return _musicFolder;
    }

    /**
     * @param musicFolder the _musicFolder to set
     */
    public void setMusicFolder(String musicFolder) {
        this._musicFolder = musicFolder;
    }

    /**
     * @return the _rssListFeedAddress
     */
    public String getRssListFeedAddress() {
        return _rssListFeedAddress;
    }

    /**
     * @param rssListFeedAddress the _rssListFeedAddress to set
     */
    public void setRssListFeedAddress(String rssListFeedAddress) {
        this._rssListFeedAddress = rssListFeedAddress;
        ClInit.setListFeedAdress(rssListFeedAddress);
    }
    
    @Override
    public String toString() {
        return "- - - - - Général - - - - - \n\n"
            + "Initial module: " + _mainInitialModule + "\n"
            + "Width: " + _mainWidth + "\n"
            + "Height: " + _mainHeight + "\n\n"
            + "- - - - - Navigateur - - - - - \n\n"
            + "HomePage: " + _browserDefaultHomePage + "\n"
            + "Max tab number: " + _browserMaxTabNumber + "\n"
            + "Max tab lenght: " + _browserMaxTabLenght + "\n\n"
            + "- - - - - Multimédia - - - - - \n\n"
            + "Music folder: " + _musicFolder + "\n\n"
            + "- - - - - Explorateur - - - - - \n\n"
            + "Root folder: " + _explorerDefaultFolder + "\n\n"
            + "- - - - - Lecteur RSS - - - - - \n\n"
            + "Feed address: " + _rssListFeedAddress;
    }
    
}

